import http from '@/utils/http';

export function qiniu_deleted(params) {
    return http({
        url: '/api/system/oss/qiniu/delete',
        method: 'get',
        params
    })
}

export function qiniu_deletedBatch(params) {
    return http({
        url: '/api/system/oss/qiniu/deleteBatch',
        method: 'get',
        params
    })
}

export function qiniu_buckets() {
    return http({
        url: '/api/system/oss/qiniu/buckets',
        method: 'get'
    })
}

export function qiniu_selectList(query) {
    return http({
        url: '/api/system/oss/qiniu/list',
        method: 'get',
        params: query
    })
}

export const uploadQiniuAction = '/api/system/oss/qiniu/upload'
export const uploadAliyunAction = '/api/system/oss/aliyun/upload'


export function aliyun_deleted(params) {
    return http({
        url: '/api/system/oss/aliyun/delete',
        method: 'get',
        params
    })
}

export function aliyun_deletedBatch(params) {
    return http({
        url: '/api/system/oss/aliyun/deleteBatch',
        method: 'get',
        params
    })
}

export function aliyun_buckets() {
    return http({
        url: '/api/system/oss/aliyun/buckets',
        method: 'get'
    })
}

export function aliyun_selectList(query) {
    return http({
        url: '/api/system/oss/aliyun/list',
        method: 'get',
        params: query
    })
}
